Tag Link | [RegExp->Matches] | Category | String |
---|---|---|---|
Type | Member | Source Available | Yes |
Support | Preferred | Version | 8.5 |
Change | New | Data Source | Any |
Output Type | None | Security | None |
Implementation | Sets | Lasso 8.5 |
[RegExp->Matches] checks whether the find pattern matches the entire input string. The tag accepts a single parameter which is the position at which to check and returns true or false. The example code will return false since the find pattern matches only the character at position 2 "o", but does not match the remainder of the input string.
[Var: 'myRegExp' = (RegExp:
[$myRegExp->(Input: 'fox')]
[$myRegExp->(Matches: 2)]
Optional Parameters | |
---|---|
Position | The integer position at which to attempt a match. The regular expression must match from this position to the end of the input string. Defaults to the start of the input string. |
See the Lasso 8 Language Guide for examples of how to use this tag.